<%-- 
    Document   : scriptingTags
    Created on : Jun 10, 2013, 8:27:18 PM
    Author     : Acer
--%>
<%@page import="java.util.*" language="java"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Scripting Tags Test</title>
    </head>
    <body>
        <center>
            <h1>Using Scripting Elements</h1>
        </center>

        <%!            int count, a, b;

            int fun(int a) {
                return 10 * a;
            }
        %>
        <%
                    a = 1;
                    count++;
                    for (int i = 0; i < 5; i++) {
                        out.println("Value of i in iteration no." + i + ":&nbsp;&nbsp;<b>" + i + "</b><br/>");
                    }
                    b = fun(a);
                    out.println("Value returned by fun():&nbsp;&nbsp;<b>"+b+"</b><br/>");
        %>
        The requested page by <b><%=count%></b> number of times on date <b><%=new Date()%></b>

    </body>
</html>
